forever
Type
keyword
Summary
Used in a repeat loop structure to specify that the loop should repeat until halted by an exit repeat.
Syntax
forever
Description
Use the forever keyword to repeat until an exit repeat statement within the loop explicitly ends the loop or until the heat death of the universe, whichever comes first.
All forms of the repeat control structure that test for a condition, test at the top of the loop (before each iteration). If you want to test at the bottom of the loop, use the forever keyword, and use a conditional exit repeat at the bottom of the loop:
repeat forever
-- statements here
if myCondition is true then exit repeat
end repeat
Examples
repeat forever
Related
control structure: exit repeat, repeat
glossary: keyword, conditional, statement, loop, iteration, control structure
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile